home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
moretim1.zip
/
MORETIME.DOC
< prev
next >
Wrap
Text File
|
1991-12-19
|
6KB
|
131 lines
+--------------------------[ MoreTime Ver 1.10 ]----------------------------+
| Written By Gary Meeker 12/18/91 Updated 12/19/91 |
| SYSOP: SHARP Technical Support Line BBS Lawrenceville, GA |
| (404) 962-1788 300/1200/2400/9600 Baud. 24 Hours |
+---------------------------------------------------------------------------+
V1.0 12/18/91 - Initial release
V1.1 12/19/91 - Noticed I left off the LEN = 25 for the database file.
- Removed PCBDOOR.TXT from .CFG file and onto command line
to make multi-node setup easier
- Added Bytes Increase value (based on 2400 baud)
-----------------------------------------------------------------------------
This was created to answer the needs of the following:
Here's the need:
A door called MORETIME to allow certain new users to enter a
specific password (which they will know in advance) and raise the
amount of time and bytes they are allowed.
Here's the scenario:
The average new user is allowed to download 50K and has a 30
min/day time limit. Some special folks need to call into the BBS and
download a 100K file and need more time to do it in. They can't take
the time to use the regular VERIFY door to raise their access, since
they are calling long distance, so they've called me in advance to ask
me how to log on to my BBS and download the file they need. Once they
log on as a completely new user, and get to the main board, they enter
MORETIME and are prompted for a password. Since I've already spoken
to them and given them the special password, they enter that. The
door writes to PCBOARD.SYS and gives them 90 minutes per day and
unlimited access to the files (or simply raises their security level).
Here's the question:
Does such a door already exist, or would someone with some
programming expertise like to take a swing at it?
I've read DEVELOP.SYS and while the programming logic is
pretty obvious to me, the technique for writing it is beyond my
present level of experience. Any comments would be appreciated.
-----------------------------------------------------------------------------
Here's a simple program to do the job.
Setup the door with PCBSETUP and install a PASSWORD if that fits your
needs. For fastest access, use the SHELL method (no swap needed) and
leave USERS.SYS & DOOR.SYS set to NO.
The door file should look like this:
MORETIME C:\PCB\
or
MORETIME %PCBDRIVE%%PCBDIR%
or
CD \MORETIME
MORETIME %PCBDRIVE%%PCBDIR%
CD %PCBDIR%
This should work for multiple nodes just fine. (note: you can not use
the swap option in the door as the %PCBDRIVE% & %PCBDIR% variables will
not be present (unless you are settiing them manually in your BOARD.BAT
file.)
The file MORETIME.EXE should be located in the path or current directory
and the file MORETIME.CFG must be in the current path or change the batch
file to change to the directory before running MORETIME as in example 3.
The MORETIME.CFG file should contain the following 5 lines
MORETIME.DAT
MORETIME.BAD
MORETIME.ADD
60
100
Line 1:Drive:Path\FileName of the User Data base of Users who have used the door
Line 2:Drive:Path\FileName of the text to display if a User has already accessed
the Door and is refused access again.
Line 3:Drive:Path\FileName of the text to display if a User is granted the
additional time & bytes.
Line 4:The Amount of additional Time to be granted.
Line 5:The Amount of additional KBytes to be granted. (Based on 2400 Baud)
This value will be adjusted according to the actual connect speed of the
User. (This will not be allowed to exceed the Daily limit set in PWRD
so it doesn't work the way I wanted it to, I will see how to get this
to work correctly)
You may 'CLEAR' the database at any time (like in an event) to allow users to
reaccess the door another day, or just leave it going to allow a single access
to the door. You can leave the line blank if you don't want to limit use of the
door. To 'CLEAR' the database, do not delete the file, but set it to ZERO BYTES
by doing a
REM > MORETIME.DAT
If the file does not exist at all, then the program will not work right. Before
opening the file, the existence of the file is checked for.
Files are not opened in share mode but as the program is going to run so fast,
it should not present any problems as multiple users would have to try to run
the door at the exact same moment.
The program returns the following ErrorLevel codes.
20 = The Config file MORETIME.CFG could not be found.
10 = The PCBOARD.SYS fie specified on the Command Line could not be found.
1 = The User was not granted more time due to being found in database file.
0 = The User was granted the additional time.
The file was compiled with PDQ for small size and fast operation. The source is
included (although unless you have Crescent's QuickPack Professional libraries
you won't be able to compile it without changing the references to the 3
routines I used from the Library.
Since PCBoard does the displaying of either of the two text files, you may use
@Xnn color codes or any of the @variable@ codes you would like. This allows
displaying useful information to the user (as in the sample files).
If you have any questions, give me a call at my BBS
SHARP Technical Support Line BBS - (404) 962-1788 - ATI 9600 etc/E V.32
Gary Meeker